#pragma once

#include <winsock2.h>
#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <sstream>
#include "Player.h"
#include "Move.h"

#define IPADDRESS "127.0.0.1"
#define PORT 60070

using std::cout;
using std::endl;
using std::vector;
using std::string;
using std::pair;
using std::stringstream;

bool socketConnect();
void envia(const char *s, int len);
void recebe(char *ans);
string recebe();
void quit();


Move getCompMove(string board, PlayerType player);
vector<Move> getPlayerMoves(string board, PlayerType player, int x, int y);
vector< pair<int,int> > getPlayerPositions(string board, PlayerType player);